using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace LPV_POS.mh_pos.mh_cauhinh
{
    public partial class mh_color : DevExpress.XtraEditors.XtraForm
    {
        private Color getcolor(object sender, EventArgs e)
        {
            Color mau;
            mau = ((Label)sender).BackColor;
            Variable.int_close = 1;
            this.Close();
            return mau;
        }

        public mh_color()
        {
            InitializeComponent();
        }

        private void mh_color_Load(object sender, EventArgs e)
        {

        }

        private void lbel_1_DoubleClick(object sender, EventArgs e)
        {            
             Variable.maunen = getcolor(sender, e);
             this.DialogResult = DialogResult.OK;
             //_Color = getcolor(sender, e);
             //this.Close();
        }

        private void bton_thoat_Click(object sender, EventArgs e)
        {
            Variable.int_close = -1;
            this.Close();

        }

        private void lbel_37_Click(object sender, EventArgs e)
        {

        }

        public Color ShowForm()
        {
            this.ShowDialog();
            return Variable.maunen;
        }

       

      
    }
}